<?php

$cfgMainMenu['title']                   = 'Terminverwaltung';

$cfgMainMenu['left'][0]['title']            = 'Termine';
$cfgMainMenu['left'][0]['img']              = 'termine.jpg';
$cfgMainMenu['left'][0]['sub'][0]['title']      = 'Neuen Termin eintragen';
$cfgMainMenu['left'][0]['sub'][0]['target']     = 'newDate.php';
$cfgMainMenu['left'][0]['sub'][1]['title']      = 'Termine bearbeiten';
$cfgMainMenu['left'][0]['sub'][1]['target']     = 'updateList.php';


$cfgMainMenu['right'][0]['title']           = 'Konfiguration';
$cfgMainMenu['right'][0]['img']             = 'config.jpg';
$cfgMainMenu['right'][0]['sub'][0]['title']     = 'Tabellen einrichten';
$cfgMainMenu['right'][0]['sub'][0]['target']        = 'createTables.php';

$sides = array('left','right');
foreach ($sides As $side)
{
    for ($i=0;$i<count($cfgMainMenu[$side]);$i++)
    {
        for ($j=0;$j<count($cfgMainMenu[$side][$i]['sub']);$j++)
        {
            $cfgMainMenu['bytarget'][$cfgMainMenu[$side][$i]['sub'][$j]['target']] = &$cfgMainMenu[$side][$i]['sub'][$j]['title'];
        }
    }
}
unset($sides);    
?>